# Contributor: Siva Mahadevan <me@svmhdvn.name>
# Maintainer: Siva Mahadevan <me@svmhdvn.name>
pkgname=kakoune-lsp
pkgver=18.0.2
pkgrel=0
pkgdesc="Kakoune Language Server Protocol Client"
url="https://github.com/kakoune-lsp/kakoune-lsp"
arch="all !s390x !riscv64" # limited by cargo
license="Unlicense OR MIT"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/kakoune-lsp/kakoune-lsp/archive/refs/tags/v$pkgver.tar.gz"


prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

check() {
	cargo test --frozen --release
}

package() {
	cargo auditable install --locked --path . --root="$pkgdir/usr"
}

sha512sums="
3b3243607f2be9cfa5b1d8f48a7a80a68cdd1cf0e96bc163de44b82d5236b7f8167ba57351a8adb8ddd9910c15052c100cad1e71f657fc6bedd72b6cecb6ff66  kakoune-lsp-18.0.2.tar.gz
"
